package com.origin.onlinesys.domain.modules.interviewsys;

import com.alibaba.fastjson.JSON;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2015/1/8.
 * 账户操作类
 */
@Table(name = "t_user_info")
public class Account implements Serializable
{

//    @OneToMany(fetch = FetchType.LAZY,cascade = CascadeType.ALL,targetEntity = Role.class)
//    private List<Role> roles;//用户角色

    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY,generator="Mysql")
    @Column(name = "u_id")
    private String id;

    @Column(name = "u_name")
    private String username;

    @Column(name = "u_real_name")
    private String realname;//真实姓名

    @Column(name = "u_passwd")
    private String password;

    @Column(name = "u_zone_id")
    private String companyareaid;//所属公司地区id

    @Transient
    private String companyarea;//所属公司地区

    @Column(name = "add_time")
    private String addTime;

    private String note;

    @Column(name = "email")
    private String email;

    private String phone1;//电话1
    private String phone2;//电话2
    private String address;//地址
    private String jobstate;//1试用，2转正，3离职
    private String job;//职位
    private String state;//状态
    private String entrydate;//入职时间
    private String dimissiondate;//离职时间

    @Column(name = "clan_name")
    private String clanName;//亲属名称
    @Column(name = "clan_phone")
    private String clanPhone;//亲属电话
    @Column(name = "relation")
    private String relation;//用户与亲属的关系
    @Column(name = "user_IDcard")
    private String userIDcard;//用户的身份证号码
    @Column(name = "salary_state")
    private String salaryState;//薪资比例
    @Column(name = "sex")
    private String sex;//用户性别
    @Column(name = "salary")
    private String salary;//薪资
    @Column(name = "education")
    private String education;//学历
    @Column(name = "houseaddress")
    private String houseAddress;//户籍地址

    @Transient
    private String queryZoneId;

    @Transient
    private String queryZoneName;

    @Transient
    private List<Zone> zoneList;

    @Transient
    private List<String> financeImgList = new ArrayList<String>();

    public String getQueryZoneName() {
        return queryZoneName;
    }

    public void setQueryZoneName(String queryZoneName) {
        this.queryZoneName = queryZoneName;
    }

    public List<Zone> getZoneList() {
        return zoneList;
    }

    public void setZoneList(List<Zone> zoneList) {
        this.zoneList = zoneList;
    }

    @Transient
    private String roleId;

    @Transient
    private String roleName;


    @Transient
    private String eduName;

    public List<String> getFinanceImgList() {
        return financeImgList;
    }

    public void setFinanceImgList(List<String> financeImgList) {
        this.financeImgList = financeImgList;
    }

    public String getEduName() {
        return eduName;
    }

    public void setEduName(String eduName) {
        this.eduName = eduName;
    }

    public String getRoleName() {
        return roleName;
    }
    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
    public String getQueryZoneId() {
        return queryZoneId;
    }

    public void setQueryZoneId(String queryZoneId) {
        this.queryZoneId = queryZoneId;
    }

    public String getHouseAddress() {
        return houseAddress;
    }

    public void setHouseAddress(String houseAddress) {
        this.houseAddress = houseAddress;
    }

    public String getClanName() {
        return clanName;
    }

    public void setClanName(String clanName) {
        this.clanName = clanName;
    }

    public String getClanPhone() {
        return clanPhone;
    }

    public void setClanPhone(String clanPhone) {
        this.clanPhone = clanPhone;
    }

    public String getUserIDcard() {
        return userIDcard;
    }

    public void setUserIDcard(String userIDcard) {
        this.userIDcard = userIDcard;
    }

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }

    public String getSalaryState() {
        return salaryState;
    }

    public void setSalaryState(String salaryState) {
        this.salaryState = salaryState;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSalary() {
        return salary;
    }

    public void setSalary(String salary) {
        this.salary = salary;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }


    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getEntrydate() {
        return entrydate;
    }

    public void setEntrydate(String entrydate) {
        this.entrydate = entrydate;
    }

    public String getDimissiondate() {
        return dimissiondate;
    }

    public void setDimissiondate(String dimissiondate) {
        this.dimissiondate = dimissiondate;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }


    public String getCompanyareaid() {
        return companyareaid;
    }

    public void setCompanyareaid(String companyareaid) {
        this.companyareaid = companyareaid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getCompanyarea() {
        return companyarea;
    }

    public void setCompanyarea(String companyarea) {
        this.companyarea = companyarea;
    }

    public String getPhone1() {
        return phone1;
    }

    public void setPhone1(String phone1) {
        this.phone1 = phone1;
    }

    public String getPhone2() {
        return phone2;
    }

    public void setPhone2(String phone2) {
        this.phone2 = phone2;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getJobstate() {
        return jobstate;
    }

    public void setJobstate(String jobstate) {
        this.jobstate = jobstate;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
